﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.FrameTiming
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Struct containing basic FrameTimings and accompanying relevant data.</para>
  /// </summary>
  [NativeHeader("Runtime/GfxDevice/FrameTiming.h")]
  public struct FrameTiming
  {
    /// <summary>
    ///   <para>This is the CPU clock time at the point Present was called for the current frame.</para>
    /// </summary>
    [NativeName("m_CPUTimePresentCalled")]
    public ulong cpuTimePresentCalled;
    /// <summary>
    ///   <para>The CPU time for a given frame, in ms.</para>
    /// </summary>
    [NativeName("m_CPUFrameTime")]
    public double cpuFrameTime;
    /// <summary>
    ///   <para>This is the CPU clock time at the point GPU finished rendering the frame and interrupted the CPU.</para>
    /// </summary>
    [NativeName("m_CPUTimeFrameComplete")]
    public ulong cpuTimeFrameComplete;
    /// <summary>
    ///   <para>The GPU time for a given frame, in ms.</para>
    /// </summary>
    [NativeName("m_GPUFrameTime")]
    public double gpuFrameTime;
    /// <summary>
    ///   <para>This was the height scale factor of the Dynamic Resolution system(if used) for the given frame and the linked frame timings.</para>
    /// </summary>
    [NativeName("m_HeightScale")]
    public float heightScale;
    /// <summary>
    ///   <para>This was the width scale factor of the Dynamic Resolution system(if used) for the given frame and the linked frame timings.</para>
    /// </summary>
    [NativeName("m_WidthScale")]
    public float widthScale;
    /// <summary>
    ///   <para>This was the vsync mode for the given frame and the linked frame timings.</para>
    /// </summary>
    [NativeName("m_SyncInterval")]
    public uint syncInterval;
  }
}
